{extend name="base/main" /}
{block name="body"}
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>关键词添加</legend>
    <form class="layui-form" action="{:url('keyword/save')}" style="margin-left: 50px">
        <div class="demoTable">
            关键词：
            <div class="layui-inline">
                <input class="layui-input" name="name" id="demoReload" autocomplete="off">
            </div>
            <button class="layui-btn" data-type="reload">搜索</button>
        </div>
    </form>
</fieldset>
<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>关键词列表</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr>
            <td>{$vo.name}</td>
            <td>
                <a href="javascript:void(0);" class="btn btn-danger btn-xs confirm tabledel ajax-post-a" target-form="id" data-id="{$vo.id}" url="{:url('keyword/remove',['id'=>$vo['id']])}"><i class="fa fa-trash"></i> 删除 </a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
{/block}